linux.kernel
[Top] [All Lists]

Re: [PATCH 2/4] locks: don't unnecessarily fail posix lock operations

Subject: Re: [PATCH 2/4] locks: don't unnecessarily fail posix lock operations
From: Miklos Szeredi
Date: Fri, 31 Mar 2006 21:30:16 +0200
Newsgroups: linux.kernel
> NACK.
> 
> This changes the behaviour of F_UNLCK. Currently, if the allocation
> fails, the inode locking state remains unchanged. With your change, an
> unlock request may end up unlocking part of the inode, but not the rest.

No, look more closer.  There are two cases:

  - some locks are partially or completely removed

  - the unlock splits an existing lock in two.

In the first case no new locks are needed.  In the second, no locks
are modified prior to the check.

Miklos
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at                                  www.tux.org/lkml/">http://www.tux.org/lkml/

<Prev in Thread] Current Thread [Next in Thread>
Privacy Policy